import React from 'react';
import {BrowserRouter,Routes,Route} from 'react-router-dom';
import Login from "./pages/login/login";
import Home from "./pages/home/home";
import Index from "./pages/index/index"
import User from "./pages/user/user"
import FormInput from "./pages/forminput/forminput"
import Star from "./pages/star/star"
function App(){
        return(
            <BrowserRouter>
                <Routes>
                    <Route path="/" element={<Home/>}>
                        <Route exact path='/' element={<Index/>}></Route>
                        <Route exact path='/user' element={<User/>}></Route>
                        <Route exact path='/form' element={<FormInput/>}></Route>
                        <Route exact path='/star' element={<Star/>}></Route>
                    </Route>
                    <Route path="/login" element={<Login/>}/>
                </Routes>
            </BrowserRouter>
        )
}
 
export default App;